package yxt.net.websocket.example.handler;

import com.yxt.net.websocket.handler.WebSocketService;
import com.yxt.net.websocket.messages.MessageBody;
import org.springframework.stereotype.Component;
import org.springframework.web.socket.PongMessage;
import org.springframework.web.socket.WebSocketSession;

/**
 * <p>
 * 文本处理器
 * </p>
 *
 * @author zhangxiaolin
 * @since 2022/1/24$ 15:14$
 */

@Component
public class TestHandler extends WebSocketService {
    @Override
    public void doService(MessageBody messageBody) {
        System.out.println("收到消息====================>"+messageBody.getMessage());
    }

}
